<view class="container">
    <scroll-view class="root-body-box" scroll-y style="white-space:nowrap">
        <view class="body-box">
            <view class="ilike-box" wx:for="{{iLikes}}" wx:for-index="index">
                <view class="ilike-box-left" bindtap="toPeopleFile">
                    <image class="avatar" src="{{iLikes[index].avatarUrl}}" mode="scaleToFill"></image>
                </view>
                <view class="ilike-box-middle" bindtap="toPeopleFile">
                    <view class="ilike-m-line1">{{iLikes[index].nickName}}
                        <image class="gender" wx:if="{{iLikes[index].gender == 1}}" src="/pic/boy.png" mode="scaleToFill"></image>
                        <image class="gender" wx:if="{{iLikes[index].gender == 2}}" src="/pic/girl.png" mode="scaleToFill"></image>
                    </view>
                    <view class="ilike-m-line2">
                        <view class="ilike-m-line2-one" style="margin-right:10rpx;" wx:if="{{iLikes[index].age>=0}}">{{iLikes[index].age}}岁</view>
                        <view class="ilike-m-line2-one" style="margin-right:10rpx;" wx:if="{{iLikes[index].height>=0}}">{{iLikes[index].height}}cm</view>
                        <view class="ilike-m-line2-one" wx:if="{{iLikes[index].constellation.length>0}}">{{iLikes[index].constellation}}座</view>
                    </view>
                    <view class="ilike-m-line3">{{iLikes[index].location}}</view>
                </view>
                <view class="ilike-box-right">
                    <view class="ilike-r-line1" data-index="{{index}}" >添加喜欢</view>
                    <button class="ilike-r-line2" data-index="{{index}}"  hover-class="none" open-type="addFriend" bindaddfriend="addFriendHandler" style="padding:0;color:white;font-size:100%;">添加好友</button>
                </view>
            </view>
        </view>
    </scroll-view>
</view>